package com.service.imput;

import com.dao.EmployeeDao;
import com.entity.Employee;
import com.service.EmployeeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class EmployeeSerciceimp implements EmployeeService {
    @Resource
    private EmployeeDao employeeDao;

    @Override
    public int addEmployee(Employee employee) {
        return employeeDao.addEmployee(employee);
    }

    @Override
    public List<Employee> finEmployee() {
        return employeeDao.finEmployee();
    }

    @Override
    public int del(int id) {
        return employeeDao.del(id);
    }
}
